#include <stdio.h>

int main(){
    int count_pos = 0;
    int count_neg = 0;
    int num_input;

    do{
        printf("输入整数...\n");
        scanf("%d", &num_input);
        if (num_input > 0){
            count_pos++;
        }
        else if (num_input < 0){
            count_neg++;
        }
        else{
            break;
        }
    }
    while(num_input);

    printf("The number of pos is %d\nThe number of neg is %d\n", count_pos, count_neg);

}